package o;

import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnDismissListener;
import com.huawei.gamebox.service.welfare.gift.bean.GiftCardBean;
import com.huawei.gamebox.service.welfare.gift.bean.PlayerRoleInfo;
import java.util.List;

public abstract class fcb {
    private static volatile fcf ˏ = null;

    public static synchronized void ˊ(Context context, fcd o_fcd) {
        synchronized (fcb.class) {
            if (ˏ == null || !ˏ.ˎ()) {
                ˏ = new fcf(context, o_fcd.ˏ());
                ˏ.ˋ(o_fcd.ˊ());
                ˏ.ॱ(o_fcd.ˋ());
                ˏ.ˎ(o_fcd.ˎ());
                ˏ.ˏ(o_fcd.ॱ());
                ˏ.ˋ(o_fcd.ʻ(), null);
                ˏ.ˊ(o_fcd.ʽ());
                ˏ.ˊ();
                ˏ.ॱ(new OnDismissListener() {
                    public void onDismiss(DialogInterface dialogInterface) {
                        fcb.ˏ = null;
                    }
                });
            } else if (Logger.ˎ()) {
                Logger.ˏ("GiftDialogLauncher", "has giftDialog showing");
            }
        }
    }

    public static void ˎ(Context context, List<PlayerRoleInfo> list, GiftCardBean giftCardBean, int i) {
        new fcj(context, list, giftCardBean, i).ˎ();
    }

    public static void ˏ(Context context, List<PlayerRoleInfo> list, GiftCardBean giftCardBean, int i, OnDismissListener onDismissListener) {
        new fcj(context, list, giftCardBean, i, onDismissListener).ˎ();
    }
}
